<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../../query.header.jsp"%>
<style type="text/css">
#_body {
	background: #FFFFFF url() repeat-x;
}
</style>

<script type="text/javascript">

var _userList;
$("#_userList").ready(function() {
	_userList = $("#_userList").jslist({
		core: { 
			listUrl:ctx+"/biz/system/user/list.json",
			countUrl:ctx+"/biz/system/user/count.json",
			columnMetadatas:[{width:100,title:"名称",name:"name"},
							{width:80,title:"账号",name:"account"},
							{width:100,title:"建设单位",name:"organName"},
							{width:80,title:"电话",name:"mobile"},
							{title:"描述",name:"description"}]},
		title: { title:"&nbsp;",titleType:"gridHeader"},
		selectable: {selectType:"radio"},
		plugins:["title","filter","selectable"]
	}).jslist("refresh");
});

function _beforeConfirm(callback) {
	var selectedItems = _userList.jslist("getSelectedItems");// $("#_queryResultBody").find(":radio:checked");
	if (selectedItems == null) {
		$.alert("请选择用户！");
		return false;
	}
	callback(selectedItems);
	return true;
}
 
</script>

<body>

<div id="_userList" class="span9">

</div>

</body>
</html>